package com.dumengwei.cms_monthmn.service.impl;

import java.util.List;

import javax.validation.Valid;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dumengwei.cms_monthmn.entity.Company;
import com.dumengwei.cms_monthmn.entity.Patent;
import com.dumengwei.cms_monthmn.mapper.PatentMapper;
import com.dumengwei.cms_monthmn.service.PatentService;
@Service
public class PatentServiceImpl implements PatentService {
	@Autowired
	private PatentMapper patentMapper;
	@Override
	public List<Patent> list() {
		// TODO Auto-generated method stub
		return patentMapper.list();
	}
	@Override
	public Patent findPatentById(Integer id) {
		// TODO Auto-generated method stub
		return patentMapper.findPatentById(id);
	}
	@Override
	public void update(Patent pa) {
		patentMapper.update(pa);
	}
	
	@Override
	public Patent ze() {
		// TODO Auto-generated method stub
		return patentMapper.ze();
	}
	
	@Override
	public List<Company> listCom() {
		// TODO Auto-generated method stub
		return patentMapper.listCom();
	}
	@Override
	public void add(Patent pa) {
		patentMapper.add(pa);
	}
	@Override
	public List<Patent> mingxi() {
		// TODO Auto-generated method stub
		return patentMapper.mingxi();
	}
}
